package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.EmailLogMapper;
import com.whq.entity.EmailLog;
import com.whq.service.EmailLogService;

@Service(value = "tdEmailLogService")
public class EmailLogServiceImpl implements EmailLogService {

    @Autowired
    private EmailLogMapper<EmailLog>tdEmailLogMapper;
    
    @Override
    public Integer insertSelective(EmailLog tdEmailLog) throws Exception {
           return this.tdEmailLogMapper.insertSelective(tdEmailLog);
        }

    @Override
    public Integer insertBatch(List<EmailLog> tdEmailLog) throws Exception {
           return this.tdEmailLogMapper.insertBatch(tdEmailLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdEmailLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdEmailLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(EmailLog tdEmailLog) {
           return this.tdEmailLogMapper.updateByPrimaryKeySelective(tdEmailLog);
    }

    @Override
    public EmailLog findById(Object id) {
           return (EmailLog) this.tdEmailLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<EmailLog> selectByCondition(EmailLog tdEmailLog) {
           return (List<EmailLog>) this.tdEmailLogMapper.selectByCondition(tdEmailLog);
    }

    @Override
    public Integer selectCountByCondition(EmailLog tdEmailLog) {
           return  this.tdEmailLogMapper.selectCountByCondition(tdEmailLog);
    }

}
